﻿using System;
using System.Collections.Generic;
using System.Linq;
using SqlSugar;
namespace ZR.Model.mes.md
{
    /// <summary>
    /// 产品定义
    ///</summary>
    [SugarTable("md_product_define")]
    public class MdProductDefine
    {
        /// <summary>
        /// 流水号 
        ///</summary>
         [SugarColumn(ColumnName="id" ,IsPrimaryKey = true ,IsIdentity = true  )]
         public int Id { get; set; }
        /// <summary>
        /// 产品编号 
        ///</summary>
         [SugarColumn(ColumnName="product_code"    )]
         public string ProductCode { get; set; }
        /// <summary>
        /// 产品名称 
        ///</summary>
         [SugarColumn(ColumnName="product_name"    )]
         public string ProductName { get; set; }
        /// <summary>
        /// 单位id 
        ///</summary>
         [SugarColumn(ColumnName="product_unit"    )]
         public int? ProductUnit { get; set; }
      
        [SugarColumn(IsIgnore =true)]
        public string ProductUnitName { get; set; }

        /// <summary>
        /// 产线json
        ///</summary>
        [SugarColumn(ColumnName= "worklineArray")]
         public string WorklineArray { get; set; }
       
        /// <summary>
        /// 预留字段1 
        ///</summary>
         [SugarColumn(ColumnName="attre1"    )]
         public string Attre1 { get; set; }
        /// <summary>
        /// 预留字段2 
        ///</summary>
         [SugarColumn(ColumnName="attre2"    )]
         public string Attre2 { get; set; }
        /// <summary>
        /// 预留字段3 
        ///</summary>
         [SugarColumn(ColumnName="attre3"    )]
         public string Attre3 { get; set; }
        /// <summary>
        /// 租户号 
        ///</summary>
         [SugarColumn(ColumnName="TENANT_ID"    )]
         public string TenantId { get; set; }
        /// <summary>
        /// 乐观锁 
        ///</summary>
         [SugarColumn(ColumnName="REVISION"    )]
         public int? Revision { get; set; }
        /// <summary>
        /// 创建人 
        ///</summary>
         [SugarColumn(ColumnName="CREATED_BY"    )]
         public string CreatedBy { get; set; }
        /// <summary>
        /// 创建时间 
        ///</summary>
         [SugarColumn(ColumnName="CREATED_TIME"    )]
         public DateTime? CreatedTime { get; set; }
        /// <summary>
        /// 更新人 
        ///</summary>
         [SugarColumn(ColumnName="UPDATED_BY"    )]
         public string UpdatedBy { get; set; }
        /// <summary>
        /// 更新时间 
        ///</summary>
         [SugarColumn(ColumnName="UPDATED_TIME"    )]
         public DateTime? UpdatedTime { get; set; }
    }
}
